#include <vector>
#include <list>
#include <iostream>
using namespace std;

void test(){
    list<char*> lst = {"hello","world","!"};

    vector<string> str;
    for(auto & ptr : lst){
        str.push_back(string(ptr));
    }

    for(auto & ptr : str){
        cout << ptr << " ";
    }
    cout << endl;
}

int main(int atgc, char * argv[])
{
    test();
    return 0;
}

